<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 pro_box_trapper_message_edit.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
$page_title = "Edit Box Trapper Message";
include $root_path.'common.php';
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'mail/pro_box_trapper_message_edit.tpl')
);

// The first command sets the permissions so we can access the file, and the second one gets it.
$message = <<<EOFpacman
<cpanel 
BoxTrapper="editmsg($FORM{'account'},$FORM{'file'})">
<cpanel Fileman="fmpushfile($FORM{'path'},$FORM{'file'})">
EOFpacman;

switch ($HTTP_GET_VARS['file']) {
	case "verify.txt":
		$message_name = "Verify";
		$template->assign_block_vars('switch_verify',array());
	break;
	case "blacklist.txt":
		$message_name = "Blacklist";
	break;
	case "returnverify.txt":
		$message_name = "Return Verify";
	break;
};


$s_hidden_inputs = "<input type=hidden name=account value=\"".$HTTP_GET_VARS['account']."\"><input type=hidden name=dir value=\"".$HTTP_GET_VARS['path']."\"><input type=hidden name=file value=\"".$HTTP_GET_VARS['file']."\">";

$template->assign_vars(array(
	'S_ACTION' => 'pro_box_trapper_message_edit_done.php',
	'S_HIDDEN_INPUTS' => $s_hidden_inputs,
	'MESSAGE' => $message,
	'MESSAGE_NAME' => $message_name,
	)
);





//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>